package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"novels00/controllers"
)

func init() {
	beego.Router("/", &controllers.MainController{})

	beego.Router("/list", &controllers.NovelsController{}, "get:List")      //展示
	beego.Router("/create", &controllers.NovelsController{}, "post:Create") //添加
	beego.Router("/update", &controllers.NovelsController{}, "post:Update") //修改
	beego.Router("/del", &controllers.NovelsController{}, "post:Del")       //删除

}
